<!--
 * @Date: 2018年01月02日 09:32:33
 * @LastEditors  : lvyou
 * @LastEditTime : 2020年01月19日 18:50:04
 * @FilePath: \youlinweb-master\index.html
 * @copyright(c) 2019-2025 版权为浙江双城网络科技集团有限公司所有，违者必究。
 -->
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui"
    />
    <!-- viewport 后面加上 minimal-ui 在safri 体现效果 -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 隐藏状态栏/设置状态栏颜色 -->
    <meta
      name="apple-mobile-web-app-status-bar-style"
      content="black-translucent"
    />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait" />
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait" />
    <meta name="referrer" content="no-referrer" />
    <title>幸福生活秀</title>
  </head>

  <body>
    <div id="app"></div>
    <!-- <script src="http://wechatfe.github.io/vconsole/lib/vconsole.min.js?v=3.3.0"></script>
    <script>
      var vConsole = new VConsole();
      console.log("Hello world");
    </script> -->
    <!--<script src="http://118.31.110.24/youlin/iscroll.js"></script>-->
    <script src="//youlingqinius.wonderlandnet.cn/iscroll.js"></script>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <!--<script src=" http://118.31.110.24/youlin/lrz.all.bundle.js"></script>-->
    <!--<script src="http://118.31.110.24/youlin/polyfill.min.js"></script>-->

    <!--<script src="http://118.31.110.24/youlin/jquery.arctext.js"></script>-->
    <script src="//cdnjs.cloudflare.com/ajax/libs/eruda/1.5.4/eruda.js"></script>
    <!-- <script src="../static/iscroll.js?v=1.3"></script> -->
    <script type="text/javascript">
      // eruda.init();
      (function () {
        if (
          /console/.test(window.location) ||
          sessionStorage.getItem("eruda") === "true"
        ) {
          var src = "//cdnjs.cloudflare.com/ajax/libs/eruda/1.5.4/eruda.js";
          document.write("<scr" + 'ipt src="' + src + '"></scr' + "ipt>");
          document.write("<scr" + "ipt>eruda.init();</scr" + "ipt>");
        }
      })();

      var _hmt = _hmt || [];
      (function () {
        if (location.host.indexOf("youlin.wonderlandnet.cn") !== 0) {
          return;
        }
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?1d8bcf7bbb494e1336919709f51d9dff";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();

      document.addEventListener("touchmove", function (e) {
        var target = e.target;
        if (
          target.tagName != "SELECT" &&
          target.tagName != "INPUT" &&
          target.tagName != "TEXTAREA" &&
          target.tagName != "A"
        ) {
          e.preventDefault();
        }
      });

      /**
       * 获取token
       */
      function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) {
          return unescape(r[2]);
        } else {
          return null;
        }
      }
      var token = getQueryString("token");
      var jumpType = getQueryString("jumpType");
      if (token) {
        localStorage.setItem("token", token);
      } else {
        // alert("请重新登录");
      }
      localStorage.setItem("jumpType", jumpType);
      if (jumpType == "1") {
        var indexTopicId = getQueryString("topicId");
        localStorage.setItem("indexTopicId", indexTopicId);
      } else if (jumpType == "3") {
        var indexDrawId = getQueryString("drawId");
        localStorage.setItem("indexDrawId", indexDrawId);
      }
    </script>
  </body>
</html>
